home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMProcessingInstruction.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  120 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMProcessingInstruction.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMProcessingInstruction_h__
  6. #define __gen_nsIDOMProcessingInstruction_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMNode_h__
  10. #include "nsIDOMNode.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMProcessingInstruction */
  19. #define NS_IDOMPROCESSINGINSTRUCTION_IID_STR "a6cf907f-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMPROCESSINGINSTRUCTION_IID \
  22.   {0xa6cf907f, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMProcessingInstruction : public nsIDOMNode {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPROCESSINGINSTRUCTION_IID)
  29.  
  30.   /**
  31.  * The nsIDOMProcessingInstruction interface represents a 
  32.  * "processing instruction", used in XML as a way to keep processor-specific 
  33.  * information in the text of the document.
  34.  *
  35.  * For more information on this interface please see 
  36.  * http://www.w3.org/TR/DOM-Level-2-Core/
  37.  *
  38.  * @status FROZEN
  39.  */
  40.   /* readonly attribute DOMString target; */
  41.   NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  42.  
  43.   /* attribute DOMString data; */
  44.   NS_IMETHOD GetData(nsAString & aData) = 0;
  45.   NS_IMETHOD SetData(const nsAString & aData) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIDOMPROCESSINGINSTRUCTION \
  51.   NS_IMETHOD GetTarget(nsAString & aTarget); \
  52.   NS_IMETHOD GetData(nsAString & aData); \
  53.   NS_IMETHOD SetData(const nsAString & aData); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIDOMPROCESSINGINSTRUCTION(_to) \
  57.   NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  58.   NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  59.   NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIDOMPROCESSINGINSTRUCTION(_to) \
  63.   NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  64.   NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  65.   NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsDOMProcessingInstruction : public nsIDOMProcessingInstruction
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSIDOMPROCESSINGINSTRUCTION
  76.  
  77.   nsDOMProcessingInstruction();
  78.  
  79. private:
  80.   ~nsDOMProcessingInstruction();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsDOMProcessingInstruction, nsIDOMProcessingInstruction)
  88.  
  89. nsDOMProcessingInstruction::nsDOMProcessingInstruction()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsDOMProcessingInstruction::~nsDOMProcessingInstruction()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* readonly attribute DOMString target; */
  100. NS_IMETHODIMP nsDOMProcessingInstruction::GetTarget(nsAString & aTarget)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* attribute DOMString data; */
  106. NS_IMETHODIMP nsDOMProcessingInstruction::GetData(nsAString & aData)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. NS_IMETHODIMP nsDOMProcessingInstruction::SetData(const nsAString & aData)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* End of implementation class template. */
  116. #endif
  117.  
  118.  
  119. #endif /* __gen_nsIDOMProcessingInstruction_h__ */
  120.